热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

终端|错误_[环境配置][原创]paddle.utils.run_check()的runtimeapiversion和nvccversion不一样

篇首语:本文由编程笔记#小编为大家整理,主要介绍了[环境配置][原创]paddle.utils.run_check()的runtime api version和nvcc --version不一样相关的

篇首语:本文由编程笔记#小编为大家整理,主要介绍了[环境配置][原创]paddle.utils.run_check()的runtime api version和nvcc --version不一样相关的知识,希望对你有一定的参考价值。


问题描述:

环境:
ubuntu18.04
RTX3090
cuda11.1+cudnn8.2.1
我在终端输入
nvcc --version显示:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0

安装paddlpaddle-gpu==2.2.1或者2.2.0均有下面错误,仔细对比发现paddle.utils.run_check()的Runtime API Version: 10.2不知道是什么问题呢





import paddle
pa>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
W0120 19:29:14.875797 20703 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.4, Runtime API Version: 10.2
W0120 19:29:14.891688 20703 device_context.cc:465] device: 0, cuDNN Version: 8.2.
W0120 19:29:18.099985 20703 operator.cc:248] uniform_random raises an exception thrust::system::system_error, parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device
Traceback (most recent call last):
File "", line 1, in
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/paddle/utils/install_check.py", line 196, in run_check
_run_static_single(use_cuda)
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/paddle/utils/install_check.py", line 124, in _run_static_single
exe.run(startup_prog)
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1246, in run
six.reraise(*sys.exc_info())
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/six.py", line 719, in reraise
raise value
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1234, in run
return self._run_impl(
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1366, in _run_impl
return self._run_program(
File "/home/howso/Anaconda/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1463, in _run_program
self._default_executor.run(program.desc, scope, 0, True, True,
RuntimeError: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device




解决方法:

这是由于RTX3090不兼容,使用post111即可

pip install paddlepaddle-gpu==2.2.1.post111 -f https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html

推荐阅读
author-avatar
文文的爱天使_152
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有